//
//  CZDatePicker.h
//  网易彩票
//
//  Created by Apple on 15/5/30.
//  Copyright (c) 2015年 itcast. All rights reserved.
//


#import <UIKit/UIKit.h>
#import "CZKeyboardTool.h"
@class CZDatePicker;
@protocol CZDatePickerDelegate <NSObject>
@optional
- (void)datePickerDidValueChanged:(CZDatePicker *)datePicker;
- (void)datePicker:(CZDatePicker *)datePicker didClickBtnType:(CZKeyboardToolButtonType)type;
@end

@interface CZDatePicker : UIView

@property (nonatomic,weak) id<CZDatePickerDelegate> delegate;

/**
 *  当前时间
 */
@property (nonatomic,strong) NSDate *currentTime;


/**
 *  最小选择时间
 */
@property (nonatomic,strong) NSDate *minDate;

/**
 *  最大选择时间
 */
@property (nonatomic,strong) NSDate *maxDate;


/**
 *  触摸日期选择器的对象
 */
@property (nonatomic,weak) id focusObject;

/**
 *  日期选择器
 */
@property (nonatomic,weak,readonly) UIDatePicker *datePicker;

/**
 *  创建日期选择器
 *
 */
+(instancetype)datePicker;
/**
 *  显示日期选择器
 */
-(void)show;
/**
 *  隐藏日期选择器
 */
-(void)dismiss;
@end
